<template>
  <div>
    <h1>父组件</h1>
   <router-view @getShopCode='getShopCode'></router-view>
  </div>
</template>
 
<script>
export default {
  data () {
    return {
     
    }
  },
    methods:{
         getShopCode(value){
         console.log(value);
    }
  }
}
</script> 
